﻿<%@ Page Title="HERPADERPA" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VERKProjectHopur16.Models.Content>" %>
<%@ Import Namespace="VERKProjectHopur16.Helpers" %> 

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Model.Title %> | IRIS
</asp:Content>

<asp:Content ID="FacebookData" ContentPlaceHolderID="FacebookHeader" runat="server">
    <meta property="og:title" content="<%: Model.Title %>" />
    <meta property="og:type" content="article" />
    <meta property="og:url" content="<%: HttpContext.Current.Request.Url.ToString() %>"/>
    <meta property="og:image" content="/Content/iris.jpg" />
    <meta property="og:site_name" content="IRIS" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div id="singlecontent">
    <h1><%: Model.Title %></h1>
        <span><em><%: Model.InsertDate.ToString("dddd, dd MMMM yyyy") %></em> - <%: Lang.GetText("Menu", Model.Category.Name) %> - <%: Lang.GetText("Menu", Model.Department.Name) %></span>
        <p>
            <%= Model.Text %>
        </p>
        <h5><%:Model.Author.Name %></h5>
</div>

<% 
    //Get current hostname
    string location = HttpContext.Current.Request.Url.ToString();
    //Parameters for facebook, see http://opengraph.facebook.com
    string parameters = "&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=true&amp;action=recommend&amp;colorschema=light&amp;font=arial&amp;height=80";
    //Location where we're going to like stuff
    string src = "http://www.facebook.com/plugins/like.php?href=" + location + parameters;
    //The iFrame we use
    string fblike = "<iframe src=\"" + src + "\" style=\"border:none; overflow:hidden; width:150px; height:30px; margin-top: 10px; margin:0; padding: 0; display: inline;\" allowTransparency=\"true\" ></iframe>";
 %>

 <hr />

    <%= fblike %><br />
    <button style="background:url('http://static.ak.fbcdn.net/rsrc.php/v1/zd/r/Cou7n-nqK52.gif') no-repeat; background-color: #fefafe; display: inline;" onclick="share_this(); return false;">&nbsp;&nbsp;&nbsp;&nbsp;Senda á facebook</button>
    
</asp:Content>
